import { get, post } from './http'

export const API = {
	getValidatorRules: (params) => post('validator/rules', params),
	getSelectOptions: (params) => post('validator/options', params),
	queryCourtAddress: (params) => get('court-address/query', params),
	addCourtAddress: (params) => post('court-address/add', params),
	getCourtAddressDetail: (params) => get('court-address/item', params),
	updateCourtAddress: (params) => post('court-address/update', params),
	removeCourtAddress: (params) => post('court-address/remove', params),

	closeAccount: (params) => post('/customer/closeAccount', params),
	wechatQrLoginCallback: (params) => post('/wx/loginCallback', params),
	refreshToken : (params) => postRaw('/pvg/refresh', params),
	getCustomerEmailAddress : (params) => post('/customer/emailAddress', params),
	loadTagRules : (params) => get('/documents/tagRules', params),
	getTagId : (params) => get('/documents/tagId', params),
	searchWord : (params) => post('/documents/list', params),
	loadDocForm : (params) => post('/documents/form', params),
	previewDoc : (params) => post('/documents/preview', params),
	previewOrderItemDoc : (params) => post('/documents/previewOrderItemDoc', params),
	subCauses : (params) => get('/form/subCauses', params),
	createOrder : (params) => post('/marketing/createOrder', params),
	cancelOrder : (params) => post('/marketing/cancelOrder', params),
	clearPrivacyInformation : (params) => post('/marketing/clearPrivacyInformation', params),
	getCustomerDiscount : (params) => post('/marketing/customerDiscount', params),
	calPriceWithDiscount : (params) => post('/marketing/calPriceWithDiscount', params),
	orderDetail : (params) => post('/marketing/orderDetail', params),
	orderItemsForm : (params) => post('/marketing/orderItemsForm', params),
	wxQrPay : (params) => post('/marketing/wxQrPay', params),
	havePaid : (params) => post('/marketing/havePaid', params),
	deliver : (params) => post('/marketing/deliver', params),
	resendMail: (params) => post('/marketing/resendMail', params),
	queryOrders : (params) => post('/marketing/queryOrders', params),
	loadOrderStatusOptions: (params) => post('/marketing/orderStatus', params),
	subArea : (params) => post('/res/subArea', params),
	queryCourt : (params) => post('/res/court', params),
	listCourt : (params) => post('/res/listCourt', params),
	getAppealWeeks : (params) => post('/law-kits/appealWeeks', params),
	getCaseAcceptanceFees : (params) => post('/law-kits/caseAcceptanceFees', params),
	getLawyersFee : (params) => post('/law-kits/lawyersFee', params),
	saveCustormerInfo: (params) => post('/customer/saveInfo', params),
	getCustormerInfo: (params) => post('/customer/info', params),
	saveEmailAddressAsDefault: (params) => post('/customer/saveEmailAddress', params),
	exportFinesForOverdueReturningExcel: (params) => post('/law-kits/exportFinesForOverdueReturningExcel', params),
	downloadFinesForOverdueReturningExcel: (params, responseType) => get('/law-kits/downloadFinesForOverdueReturningExcel', params, responseType),
	computeInterbankOffered: (params) => post('/law-kits/computeInterbankOffered', params),
	scrollCivilCode: (params) => post('/civil-code/scroll', params),
	loadCategoryForCascader: (params) => post('/civil-code/category', params),
	listCategory : (params) => post('/civil-code/listCategory', params),
	subArea: (params) => get('lawyersfeecalculator/getProvinceList', params),
	getLawyersFee: (params) => get('lawyersfeecalculator/lawyersfeecalc', params),
	getCaseAcceptanceFees: (params) => get('caseAcceptanceFees/calc', params),
	computeInterbankOffered: (params) => get('lpr/lprcalc', params),
	getTerminal: (params) => get('lpr/getTerminal',params)
}

